from Page import Page
import unittest,time
from selenium import webdriver

class TestCase(unittest.TestCase):

    def setUp(self):
        # 打开浏览器
        self.driver = webdriver.Edge()

    def tearDown(self):
        time.sleep(3)
        # 退出浏览器
        self.driver.quit()

    def test_01_login(self):
        # 初始化页面类
        po = Page(self.driver)
        po.luoji_A3mall()

if __name__ == '__main__':
    unittest.main()